<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    body {
      width: 300px;
      padding: 15px;
      font-family: Arial, sans-serif;
    }
    
    .config-item {
      margin-bottom: 15px;
    }
    
    label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }
    
    input {
      width: 100%;
      padding: 8px;
      box-sizing: border-box;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    
    button {
      width: 100%;
      padding: 10px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    
    button:hover {
      background-color: #45a049;
    }
    
    .status-message {
      margin-top: 10px;
      text-align: center;
      color: #4CAF50;
      display: none;
    }
    
    .selected-text {
        font-weight: bold;
        margin-bottom: 10px;
        padding: 5px;
        background-color: #f0f0f0;
    }
    
    .context-text {
        color: #666;
        padding: 5px;
        border-left: 3px solid #ccc;
    }
  </style>
</head>
<body>
  <div class="config-item">
    <label for="modelUrl">模型 URL：</label>
    <input type="text" id="modelUrl" placeholder="请输入模型 URL">
  </div>
  
  <div class="config-item">
    <label for="modelName">模型名称：</label>
    <input type="text" id="modelName" placeholder="请输入模型名称">
  </div>
  
  <div class="config-item">
    <label for="apiKey">API Key：</label>
    <input type="password" id="apiKey" placeholder="请输入 API Key">
  </div>
  
  <button id="saveButton">保存配置</button>
  <div id="statusMessage" class="status-message">配置已保存！</div>
  
  <script src="popup.js"></script>
</body>
</html> 